/*
 * Copyright (C) 2010-2010 MaoJian Wu
 *
 * Author:
 *	MaoJian Wu
 *
 * Source:
 *	
 *
 * This file is a part of zfspear library.
 *
 *
 */

#ifndef MESSAGE_H
#define MESSAGE_H

#include "stanzas.h"
class Message : public Stanzas {

Q_OBJECT

public:
    enum Type
    {
        Error = 0,
        Normal,
        Chat,
        GroupChat,
        Headline
    };

    Message(const QString& from = "", const QString& to = "", const QString& body = "",
        const QString& thread = "");



    QString GetBody() ;
    void SetBody(const QString& body);
    QString GetSubject() ;
    void SetSubject(const QString& subject);
    QString GetThread() ;
    void SetThread(const QString& thread);


};

#endif // MESSAGE_H
